package com.example.demo.pool;

import java.sql.Connection;

/**
 * 连接池接口
 * @author maxf
 * @version 1.0
 * @ClassName MysqlPool
 * @Description
 * @date 2019/2/14 14:59
 */
public interface MysqlPool {
    //初始化
    void init();

    //销毁
    void destroy();

    //取连接
    Connection getCoon();

    //释放连接
    void release(Connection connection);
}
